package com.aaa.backsystem.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gyc
 * @since 2020-07-23
 */
@TableName("tbl_dic")
public class Dic extends Model<Dic> {

    private static final long serialVersionUID = 1L;

    /**
     * 名族id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("type_id")
    private String typeId;
    /**
     * 名族名称
     */
    private String nation;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dic{" +
        "id=" + id +
        ", typeId=" + typeId +
        ", nation=" + nation +
        "}";
    }
}
